package com.mrs.gauss.model.entity;


import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * Created by hecq on 2024-12-24.
 *
 * @author hecq
 * @version 0.0.1
 * @date 2024-12-24
 * @since 0.0.1
 */

public class MrsHost implements Serializable {
    private static final long serialVersionUID = -6381761856892181195L;
    @NotBlank
    @Length(max = 200)

    /**
     * 大数据集群名
     */
    private String clusterName;

    /**
     * 主机管理ip
     */
    private String ip;
    /**
     * 主机业务ip
     */
    private String businessIp;

    /**
     * 主机名
     */
    private String hostname;

    /**
     * 主机内存大小
     */
    private String totalMemory;

    /**
     * 主机可用内存
     */
    private String availableMemory;
    /**
     * 主机磁盘空间
     */
    private String totalHardDiskSpace;
    /**
     * 主机可用磁盘空间
     */
    private String availableHardDiskSpace;

    /**
     * 主机运行状态
     */
    private String runningStatus;
    /**
     * 主机实例分布情况
     */
    private String[] instances;

  /*  */

    public String getClusterName() {
        return clusterName;
    }

    public void setClusterName(String clusterName) {
        this.clusterName = clusterName;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getBusinessIp() {
        return businessIp;
    }

    public void setBusinessIp(String businessIp) {
        this.businessIp = businessIp;
    }

    public String getHostname() {
        return hostname;
    }

    public void setHostname(String hostname) {
        this.hostname = hostname;
    }

    public String getTotalMemory() {
        return totalMemory;
    }

    public void setTotalMemory(String totalMemory) {
        this.totalMemory = totalMemory;
    }

    public String getAvailableMemory() {
        return availableMemory;
    }

    public void setAvailableMemory(String availableMemory) {
        this.availableMemory = availableMemory;
    }

    public String getTotalHardDiskSpace() {
        return totalHardDiskSpace;
    }

    public void setTotalHardDiskSpace(String totalHardDiskSpace) {
        this.totalHardDiskSpace = totalHardDiskSpace;
    }

    public String getAvailableHardDiskSpace() {
        return availableHardDiskSpace;
    }

    public void setAvailableHardDiskSpace(String availableHardDiskSpace) {
        this.availableHardDiskSpace = availableHardDiskSpace;
    }

    public String getRunningStatus() {
        return runningStatus;
    }

    public void setRunningStatus(String runningStatus) {
        this.runningStatus = runningStatus;
    }

    public String[] getInstances() {
        return instances;
    }

    public void setInstances(String[] instances) {
        this.instances = instances;
    }

    /**
     * oms主机状态 -ACTIVE_OMS 主
     *//*
    private String nodeOMSType;*/


    @Override
    public String toString() {
        return "MrsHost{" +
                "ip=" + ip + '\'' +
                ", businessIp='" + businessIp + '\'' +
                ", hostname='" + hostname + '\'' +
                ", totalMemory='" + totalMemory + '\'' +
                ", availableMemory='" + availableMemory + '\'' +
                ", totalHardDiskSpace='" + totalHardDiskSpace + '\'' +
                ", availableHardDiskSpace='" + availableHardDiskSpace + '\'' +
                ", runningStatus='" + runningStatus + '\'' +
                ", instances='" + instances + '\'' +
                '}';
    }
}
